#include <fat.h>
#include <grrlib.h>
#include <wiiuse/wpad.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <ogcsys.h>
#include <gccore.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include <debug.h>
//#include "network/networkops.h"
//#include "http.h"
#include <ogc/ios.h>
/*
char * getname(struct block http , u8 o)
{
	int i = 0;
	char * b = http.data;
	while(i <= o)
	{
		b = strstr(b,"postRow");
		if(b == NULL)return NULL;
		i++;
	}
	char * c = strstr(b,"span");
	if(c == NULL)return NULL;
	c++;
	char * d = strstr(c,"span");
	if(d == NULL)return NULL;
	int offset = d - c;
	if(offset == 0)return NULL;
	char * data = malloc(offset - 1);
	memcpy(data, c, offset - 2);
	data[offset - 2] = NULL;
	return data;
}
char *getanswercode(struct block http)
{
	char * x = http.data;
	char * u = strstr(x,"\n");
	if(u == NULL)return NULL;
	int offset = u - x;
	if(offset == 0)return NULL;
	char * data = malloc(offset + 1);
	memcpy(data, http.data, offset);
	data[offset] = NULL;
	return data;
}
int getip(struct block http, u8 o)
{
	int i = 0;
	char * b = http.data;
	while(i <= o)
	{
		b = strstr(b,"postRow");
		if(b == NULL)return NULL;
		o++;
	}
	char * c = strstr(b,"IPWIIWARSTRAC:");
	if(c == NULL)return NULL;
	int data = c[0] + c[1] * 0x100 + c[2] * 0x10000 + c[3] * 0x1000000;
	return data;
}
*/